﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace syc.Fc
{
    public partial class 分厂内月报表 : System.Web.UI.Page
    {
        protected decimal[] Data;
        protected string Notice = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                Date1.Text = DateTime.Today.AddDays(-1).ToString("yyyy年M月d日");

                if ((object)Session["OperatorDID"] != null)
                {
                    int did = (int)Session["OperatorDID"];
                    if (did != 0)
                    {
                        if (did == 1)
                        {
                            this.FenChang.Items.RemoveAt(1);
                            this.FenChang.Items.RemoveAt(1);
                            this.FenChang.Items.RemoveAt(1);
                        }
                        else if (did == 2)
                        {
                            this.FenChang.Items.RemoveAt(0);
                            this.FenChang.Items.RemoveAt(1);
                            this.FenChang.Items.RemoveAt(1);
                        }
                        else if (did == 5)
                        {
                            this.FenChang.Items.RemoveAt(0);
                            this.FenChang.Items.RemoveAt(0);
                        }

                    }
                }
            }
        }
    }
}
